'''
Created on 13 nov. 2013

@author: ivan
'''

#DOC
#http://vene.ro/talks/scikit-learn-shef-19102012.html
#http://docs.python.org/2/library/csv.html#csv-fmt-params
#http://scikit-learn.org/stable/modules/feature_extraction.html#feature-extraction
#http://www.commentcamarche.net/faq/2382-python-lire-et-ecrire-des-fichiers-csv

import csv
from sklearn.feature_extraction import DictVectorizer
from numpy import loadtxt


# OPTION 1
with open('train.csv', 'r') as fichier_csv:
    csvreader = csv.reader(fichier_csv, delimiter=' ', quotechar='|')
#    for row in csvreader: # one row = a list of strings = one sample of the training set 
#        print row
    print (csvreader)

#OPTION 2 http://docs.scipy.org/doc/numpy/reference/generated/numpy.loadtxt.html


